<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <form class="form-horizontal js-ajax-form" method="post">
            <li><a>{$user.name} 融360运营商报告 原始数据</a></li>
            <li><a class="btn btn-success btn-lg"  href="{:U('indexadmin/yys_raw_down',array('id'=>$list['report_id'],'type'=>1))}">通话信息导出</a> <a class="btn btn-success btn-lg"  href="{:U('indexadmin/yys_raw_down',array('id'=>$list['report_id']))}">短信信息导出</a></li>
			<br/>
			<li>
			用户实名状态:<if condition="$list['userdata']['authentication'] eq 1">
				已实名
			<elseif condition="$list['userdata']['authentication'] eq 2"/>
				未实名
			<else/>
				未知
			</if>
			</li>
			<li>
			客户状态:
			<if condition="$list['userdata']['phone_status'] eq 1">
				正常
			<elseif condition="$list['userdata']['phone_status'] eq 2"/>
				停机
			<elseif condition="$list['userdata']['phone_status'] eq 3"/>
				单向停机（单向停机指的是可以收短信电话）
			<elseif condition="$list['userdata']['phone_status'] eq 4"/>
				预销户
			<elseif condition="$list['userdata']['phone_status'] eq 5"/>
				销户
			<elseif condition="$list['userdata']['phone_status'] eq 6"/>
				过户
			<elseif condition="$list['userdata']['phone_status'] eq 7"/>
				改号
			<elseif condition="$list['userdata']['phone_status'] eq 8"/>
				此号码不存在
			<elseif condition="$list['userdata']['phone_status'] eq 9"/>
				挂失/冻结
			<else/>
				未知
			</if>
			</li>
			<if condition="$list['userdata']['contact_phone']">
			<li>其他联系人号码:{$list['userdata']['contact_phone']}(官网展示的该手机号其他联系人号码)</li>
			</if>
		<fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <fieldset>
                        <table class="table table-bordered">
                            <caption><span style="color:blue"><h2><span style="color:black;">通话信息</span></h2></span></caption> 
							<php>krsort($list['teldata']);</php>
							<foreach name="list['teldata']" item="v">
								<tr>
									<td>{$v.month}({$v.total_size|default=0}条)</td>
									<td>业务类型</td>
									<td>通话时间</td>
									<td>呼叫类型</td>
									<td>费用</td>
									<td>套餐优惠</td>
									<td>本机通话地</td>
									<td>通话时长(秒)</td>
									<td>通信类型</td>
									<td>对方号码</td>
								</tr>
								<php>krsort($v['items']);</php>
								<foreach name="v['items']" item="vo">
								<tr>
									<td></td>
									<td>{$vo.business_name}</td>
									<td>{$vo.call_time}</td>
									<if condition="$vo['call_type'] eq 1">
										<td>主叫</td>
									<elseif condition="$vo['call_type'] eq 2"/>
										<td>被叫</td>
									<else/>
										<td>未识别状态</td>
									</if>
									<td>{$vo.fee}</td>
									<td>{$vo.special_offer}</td>
									<td>{$vo.trade_addr}</td>
									<td>{$vo.trade_time}</td>
									<if condition="$vo['trade_type'] eq 1">
										<td>本地</td>
									<elseif condition="$vo['trade_type'] eq 2"/>
										<td>漫游国内</td>
									<else/>
										<td>其他</td>
									</if>
									<td>{$vo.receive_phone}
									<if condition="$mobileList[$vo['receive_phone']]">
									<span style='color:blue'>({$mobileList[$vo['receive_phone']]})</span>
									</if>
									</td>
								</tr>
								</foreach>
								<tr></tr>
							</foreach>
                        </table>
                        <table class="table table-bordered">
                            <caption><span style="color:blue"><h2><span style="color:black;">短信信息</span></h2></span></caption> 
							<php>krsort($list['msgdata']);</php>
							<foreach name="list['msgdata']" item="v">
								<tr>
									<td>{$v.month}({$v.total_size|default=0}条)</td>
									<td>业务类型</td>
									<td>费用</td>
									<td>对方号码</td>
									<td>发送时间</td>
									<td>短信地址</td>
									<td>信息类型</td>
									<td>短信状态</td>
								</tr>
								<php>krsort($v['items']);</php>
								<foreach name="v['items']" item="vo">
								<tr>
									<td></td>
									<td>{$vo.business_name}</td>
									<td>{$vo.fee}</td>
									<td>{$vo.receiver_phone}
									<if condition="$mobileList[$vo['receiver_phone']]">
									<span style='color:blue'>({$mobileList[$vo['receiver_phone']]})</span>
									</if>
									</td>
									<td>{$vo.send_time}</td>
									<td>{$vo.trade_addr}</td>
									<if condition="$vo['trade_type'] eq 1">
										<td>短信</td>
									<elseif condition="$vo['trade_type'] eq 2"/>
										<td>彩信</td>
									<else/>
										<td>其他</td>
									</if>
									<if condition="$vo['trade_way'] eq 1">
										<td>发送</td>
									<elseif condition="$vo['trade_way'] eq 2"/>
										<td>接收</td>
									<else/>
										<td>未识别状态</td>
									</if>
								</tr>
								</foreach>
								<tr></tr>
							</foreach>
                        </table>
                    </fieldset>
                </div>
            </div>

            <div class="form-actions">
                <!-- <button class="btn btn-primary js-ajax-submit" type="submit" data-types='1' data-action="{:U('Examine/set_exam',array('display'=>1))}" data-msg='确认已还款?' data-subcheck="true">手工确认还款</button> -->
                <!-- <a class="btn btn-primary js-ajax-submit"  href="{:U('Examine/loan_no_due')}" >返回</a> -->
            </div>
        </fieldset>
    </form>

</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>